package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.UserBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.CHANGE_USER)
public class ConnPersonalInfo extends BaseAsyPost<UserBean> {

    public String member_id, name;

    public ConnPersonalInfo(String member_id, AsyCallBack<UserBean> asyCallBack) {
        super(asyCallBack);
        this.member_id = member_id;
    }

/*
    public ConnPersonalInfo(String member_id, AsyCallBack<String> asyCallBack) {



        this.member_id = member_id;


    }*/

    @Override
    protected UserBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");
        Gson gson = new Gson();

        UserBean loginBean = new UserBean();

        loginBean = gson.fromJson(object.toString(), UserBean.class);


        return loginBean;


    }
}



